$picList=Get-ChildItem -Path C:\hr\images
$picList
# $fileLocation="C:\hr\images\"

$picList[0]
$picList[0].Name
$picList[0].LastWriteTime

foreach($pic in $picList){
    $pic.FullName
}

foreach($pic in $picList)
{
    
   $tempPicName=$pic.Name.Split(".")[0]

   for ($i = $pic.Name.Length;$i -lt 10;$i++)
   {
       $tempPicName=$tempPicName+"0"
   }

$tempPicName=$tempPicName+".jpg"
Rename-Item -Path $pic.FullName -NewName $tempPicName

}

$picList
